package yunwo.cn.yzstation.config;

import android.content.Context;
import android.content.SharedPreferences;

import java.io.Serializable;

import yunwo.cn.yzstation.base.Yzapp;

public class GoodsSP implements Serializable {
    private static GoodsSP applicationInfo = new GoodsSP();
    private final SharedPreferences mGoodsShare;
    private   SharedPreferences.Editor mEdit;

    private GoodsSP() {
        mGoodsShare = Yzapp.getInstance().getSharedPreferences("information_discharge", Context.MODE_PRIVATE);
        mEdit = mGoodsShare.edit();
    }

    public static GoodsSP getInstance() {
        return applicationInfo;
    }
    public SharedPreferences getGoodsShare(){
        return mGoodsShare;
    }

    public SharedPreferences.Editor getEdit(){
        return mEdit;
    }

    public void setWayBill(String trackingNumber) {mEdit.putString("trackingNumber", trackingNumber);}
    public  void setWeight(String weight) {
        mEdit.putString("weight", weight);
    }

    public void setVolume(String volume) {
        mEdit.putString("volume", volume);
    }

    public void setRebate(String rebate) {
        mEdit.putString("rebate", rebate);
    }

    public void setRemarks(String remarks) {
        mEdit.putString("remarks", remarks);
    }

    public void setFreight(String freight) {
        mEdit.putString("freight", freight);
    }

    public void setPremium(String premium) {
        mEdit.putString("premium", premium);
    }

    public void setPackName(String packName) {
        mEdit.putString("packName", packName);
    }

    public void setEndOgranName(String endOgranName) {
        mEdit.putString("endOrganName", endOgranName);
    }

    public void setEndOgranid(String setEndOgranid) {
        mEdit.putString("endOrganId", setEndOgranid);
    }

    public void setProductName(String productName) {
        mEdit.putString("productName", productName);
    }

    public void setGoodsNumber(String goodsNumber) {
        mEdit.putString("goodsNumber", goodsNumber);
    }

    public void setOtherCharges(String otherCharges) {
        mEdit.putString("otherCharges", otherCharges);
    }

    public void setPayMeansId(String payMeansId) {
        mEdit.putString("payMeansId", payMeansId);
    }
    public void setPayMeansName(String payMeansName) {
        mEdit.putString("payMeansName", payMeansName);
    }



    public void setConsigneeName(String consigneeName) {
        mEdit.putString("consigneeName", consigneeName);
    }

    public void setConsigneePhone(String consigneePhone) {
        mEdit.putString("consigneePhone", consigneePhone);
    }

    public void setServiceCharges(String serviceCharges) {
        mEdit.putString("serviceCharges", serviceCharges);
    }

    public void setBeginOrganName(String beginOrganName) {
        mEdit.putString("beginOrganName", beginOrganName);
    }

    public void setGoodsSelfNumber(String goodsSelfNumber) {
        mEdit.putString("goodsSelfNumber", goodsSelfNumber);
    }

    public void setDeliveryCharges(String deliveryCharges) {
        mEdit.putString("deliveryCharges", deliveryCharges);
    }

    public void setConsigneeAddress(String consigneeAddress) {
        mEdit.putString("consigneeAddress", consigneeAddress);
    }

    public void setTransferOrganName(String transferOrganName) {
        mEdit.putString("transferOrganName", transferOrganName);
    }

    public void setAdvanceTransferCharges(String advanceTransferCharges) {
        mEdit.putString("advanceTransferCharges", advanceTransferCharges);
    }

    //*********************OrderFragment end**********************
    public void setbank(String bank) {
        mEdit.putString("bank", bank);
    }
    public void setBankName(String bankName) {
        mEdit.putString("bankName", bankName);
    }
    public void setTotalFee(String totalFee) {
        mEdit.putString("totalFee", totalFee);
    }
    public void setReputation(String reputation) {
        mEdit.putString("reputation", reputation);
    }
    public void setReceiptPay(String receiptPay) {
        mEdit.putString("receiptPay", receiptPay);
    }
    public void setBankAccount(String bankAccount) {
        mEdit.putString("bankAccount", bankAccount);
    }
    public void setFloorCharges(String floorCharges) { mEdit.putString("floorCharges", floorCharges);
    }
    public void setCollectMoney(String collectMoney) {mEdit.putString("collectMoney", collectMoney);
    }
    public void setConsignorName(String consignorName) { mEdit.putString("consignorName", consignorName);
    }
    public void setReceiptRequire(String receiptRequire) { mEdit.putString("receiptRequire", receiptRequire);
    }
    public void setConsignorPhone(String consignorPhone) {mEdit.putString("consignorPhone", consignorPhone);
    }
    public void setCustomsCharges(String customsCharges) {mEdit.putString("customsCharges", customsCharges);
    }
    public void setPullPackWorker(String pullPackWorker) {mEdit.putString("pullPackWorker", pullPackWorker);
    }
    public void setUpstairsCharges(String upstairsCharges) {mEdit.putString("upstairsCharges", upstairsCharges);
    }
    public void setConsignorAddress(String consignorAddress) {mEdit.putString("consignorAddress", consignorAddress);
    }
    public void setProcurationCharges(String procurationCharges) {mEdit.putString("procurationCharges", procurationCharges);
    }
    public void setPullPackWorkerPhone(String pullPackWorkerPhone) {mEdit.putString("pullPackWorkerPhone", pullPackWorkerPhone);
    }

    public void setGnd(String Gnd) {
        mEdit.putString("gnd", Gnd);
    }

    public void setTransferOrganid(String transferOrganId) {
        mEdit.putString("transferOrganId", transferOrganId);
    }


    public void setDeliveryName(String deliveryName) {
        mEdit.putString("deliveryName", deliveryName);
    }
    public void setdeliveryId(String deliveryId) {
        mEdit.putString("deliveryId", deliveryId);
    }


}